﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;
using BaseUI;

namespace MsgCenter.Web
{
    public partial class LoginOut : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            BaseUI.UserSessionService.RemoveUserInfo(base.Account); 
            FormsAuthentication.SignOut();
            GC.Collect(); ;
            Session.Abandon();
            try
            {
                DotNetCasClient.CasAuthentication.ClearAuthCookie();
                DotNetCasClient.CasAuthentication.SingleSignOut();
            }
            catch
            { }
            Response.Redirect("Login.aspx");
        }
    }
}